package com.party.model;

import java.io.Serializable;
import java.util.Date;

public class SysUser implements Serializable {
    private Integer uid;

    private Integer roleid;

    private Integer officeid;

    private Integer lodgeid;

    private String passport;

    private String pwd;

    private String headurl;

    private String realname;

    private String email;

    private String regtime;

    private String lastlogintime;

    private Integer count;

    private Integer status;

    private String tel;

    private String lone;

    private String ltwo;

    private String lthree;

    private Date partystarttime;

    private Date partyendtime;

    private String spare1;

    private String spare2;

    private String spare3;

    private String spare4;

    private String spare5;

    private byte[] content;

    /**
     * 自己添加的字段
     */
    private int differDateNum=100;

    public int getDifferDateNum() {
        return differDateNum;
    }

    public void setDifferDateNum(int differDateNum) {
        this.differDateNum = differDateNum;
    }

    private static final long serialVersionUID = 1L;

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getRoleid() {
        return roleid;
    }

    public void setRoleid(Integer roleid) {
        this.roleid = roleid;
    }

    public Integer getOfficeid() {
        return officeid;
    }

    public void setOfficeid(Integer officeid) {
        this.officeid = officeid;
    }

    public Integer getLodgeid() {
        return lodgeid;
    }

    public void setLodgeid(Integer lodgeid) {
        this.lodgeid = lodgeid;
    }

    public String getPassport() {
        return passport;
    }

    public void setPassport(String passport) {
        this.passport = passport == null ? null : passport.trim();
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd == null ? null : pwd.trim();
    }

    public String getHeadurl() {
        return headurl;
    }

    public void setHeadurl(String headurl) {
        this.headurl = headurl == null ? null : headurl.trim();
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname == null ? null : realname.trim();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public String getRegtime() {
        return regtime;
    }

    public void setRegtime(String regtime) {
        this.regtime = regtime == null ? null : regtime.trim();
    }

    public String getLastlogintime() {
        return lastlogintime;
    }

    public void setLastlogintime(String lastlogintime) {
        this.lastlogintime = lastlogintime == null ? null : lastlogintime.trim();
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel == null ? null : tel.trim();
    }

    public String getLone() {
        return lone;
    }

    public void setLone(String lone) {
        this.lone = lone == null ? null : lone.trim();
    }

    public String getLtwo() {
        return ltwo;
    }

    public void setLtwo(String ltwo) {
        this.ltwo = ltwo == null ? null : ltwo.trim();
    }

    public String getLthree() {
        return lthree;
    }

    public void setLthree(String lthree) {
        this.lthree = lthree == null ? null : lthree.trim();
    }

    public Date getPartystarttime() {
        return partystarttime;
    }

    public void setPartystarttime(Date partystarttime) {
        this.partystarttime = partystarttime;
    }

    public Date getPartyendtime() {
        return partyendtime;
    }

    public void setPartyendtime(Date partyendtime) {
        this.partyendtime = partyendtime;
    }

    public String getSpare1() {
        return spare1;
    }

    public void setSpare1(String spare1) {
        this.spare1 = spare1 == null ? null : spare1.trim();
    }

    public String getSpare2() {
        return spare2;
    }

    public void setSpare2(String spare2) {
        this.spare2 = spare2 == null ? null : spare2.trim();
    }

    public String getSpare3() {
        return spare3;
    }

    public void setSpare3(String spare3) {
        this.spare3 = spare3 == null ? null : spare3.trim();
    }

    public String getSpare4() {
        return spare4;
    }

    public void setSpare4(String spare4) {
        this.spare4 = spare4 == null ? null : spare4.trim();
    }

    public String getSpare5() {
        return spare5;
    }

    public void setSpare5(String spare5) {
        this.spare5 = spare5 == null ? null : spare5.trim();
    }

    public byte[] getContent() {
        return content;
    }

    public void setContent(byte[] content) {
        this.content = content;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SysUser other = (SysUser) that;
        return (this.getUid() == null ? other.getUid() == null : this.getUid().equals(other.getUid()))
                && (this.getRoleid() == null ? other.getRoleid() == null : this.getRoleid().equals(other.getRoleid()))
                && (this.getOfficeid() == null ? other.getOfficeid() == null : this.getOfficeid().equals(other.getOfficeid()))
                && (this.getLodgeid() == null ? other.getLodgeid() == null : this.getLodgeid().equals(other.getLodgeid()))
                && (this.getPassport() == null ? other.getPassport() == null : this.getPassport().equals(other.getPassport()))
                && (this.getPwd() == null ? other.getPwd() == null : this.getPwd().equals(other.getPwd()))
                && (this.getHeadurl() == null ? other.getHeadurl() == null : this.getHeadurl().equals(other.getHeadurl()))
                && (this.getRealname() == null ? other.getRealname() == null : this.getRealname().equals(other.getRealname()))
                && (this.getEmail() == null ? other.getEmail() == null : this.getEmail().equals(other.getEmail()))
                && (this.getRegtime() == null ? other.getRegtime() == null : this.getRegtime().equals(other.getRegtime()))
                && (this.getLastlogintime() == null ? other.getLastlogintime() == null : this.getLastlogintime().equals(other.getLastlogintime()))
                && (this.getCount() == null ? other.getCount() == null : this.getCount().equals(other.getCount()))
                && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
                && (this.getTel() == null ? other.getTel() == null : this.getTel().equals(other.getTel()))
                && (this.getLone() == null ? other.getLone() == null : this.getLone().equals(other.getLone()))
                && (this.getLtwo() == null ? other.getLtwo() == null : this.getLtwo().equals(other.getLtwo()))
                && (this.getLthree() == null ? other.getLthree() == null : this.getLthree().equals(other.getLthree()))
                && (this.getPartystarttime() == null ? other.getPartystarttime() == null : this.getPartystarttime().equals(other.getPartystarttime()))
                && (this.getPartyendtime() == null ? other.getPartyendtime() == null : this.getPartyendtime().equals(other.getPartyendtime()))
                && (this.getSpare1() == null ? other.getSpare1() == null : this.getSpare1().equals(other.getSpare1()))
                && (this.getSpare2() == null ? other.getSpare2() == null : this.getSpare2().equals(other.getSpare2()))
                && (this.getSpare3() == null ? other.getSpare3() == null : this.getSpare3().equals(other.getSpare3()))
                && (this.getSpare4() == null ? other.getSpare4() == null : this.getSpare4().equals(other.getSpare4()))
                && (this.getSpare5() == null ? other.getSpare5() == null : this.getSpare5().equals(other.getSpare5()))
                && (this.getContent() == null ? other.getContent() == null : this.getContent().equals(other.getContent()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUid() == null) ? 0 : getUid().hashCode());
        result = prime * result + ((getRoleid() == null) ? 0 : getRoleid().hashCode());
        result = prime * result + ((getOfficeid() == null) ? 0 : getOfficeid().hashCode());
        result = prime * result + ((getLodgeid() == null) ? 0 : getLodgeid().hashCode());
        result = prime * result + ((getPassport() == null) ? 0 : getPassport().hashCode());
        result = prime * result + ((getPwd() == null) ? 0 : getPwd().hashCode());
        result = prime * result + ((getHeadurl() == null) ? 0 : getHeadurl().hashCode());
        result = prime * result + ((getRealname() == null) ? 0 : getRealname().hashCode());
        result = prime * result + ((getEmail() == null) ? 0 : getEmail().hashCode());
        result = prime * result + ((getRegtime() == null) ? 0 : getRegtime().hashCode());
        result = prime * result + ((getLastlogintime() == null) ? 0 : getLastlogintime().hashCode());
        result = prime * result + ((getCount() == null) ? 0 : getCount().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getTel() == null) ? 0 : getTel().hashCode());
        result = prime * result + ((getLone() == null) ? 0 : getLone().hashCode());
        result = prime * result + ((getLtwo() == null) ? 0 : getLtwo().hashCode());
        result = prime * result + ((getLthree() == null) ? 0 : getLthree().hashCode());
        result = prime * result + ((getPartystarttime() == null) ? 0 : getPartystarttime().hashCode());
        result = prime * result + ((getPartyendtime() == null) ? 0 : getPartyendtime().hashCode());
        result = prime * result + ((getSpare1() == null) ? 0 : getSpare1().hashCode());
        result = prime * result + ((getSpare2() == null) ? 0 : getSpare2().hashCode());
        result = prime * result + ((getSpare3() == null) ? 0 : getSpare3().hashCode());
        result = prime * result + ((getSpare4() == null) ? 0 : getSpare4().hashCode());
        result = prime * result + ((getSpare5() == null) ? 0 : getSpare5().hashCode());
        result = prime * result + ((getContent() == null) ? 0 : getContent().hashCode());
        return result;
    }
}